home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 52
/
Aminet 52 (2002)(GTI - Schatztruhe)[!][Dec 2002].iso
/
Aminet
/
util
/
moni
/
Scout-src.lha
/
netinclude
/
utmp.h
< prev
Wrap
C/C++ Source or Header
|
2002-09-16
|
1KB
|
39 lines
#ifndef UTMP_H
#define UTMP_H \
"$Id: utmp.h,v 1.1.1.1 2001/11/26 22:21:13 tboeckel Exp $"
/*
* Definitions of utmp and lastlog structures for 32 bit C compilers
*
* Copyright © 1994 AmiTCP/IP Group,
* Network Solutions Development, Inc.
* All rights reserved.
*/
#define _PATH_UTMP "AmiTCP:log/utmp"
#define _PATH_WTMP "AmiTCP:log/wtmp"
#define _PATH_LASTLOG "AmiTCP:log/lastlog"
#define UT_NAMESIZE 32
#define UT_LINESIZE 32
#define UT_HOSTSIZE 64
struct lastlog {
long ll_time; /* the login time */
uid_t ll_uid; /* user ID */
char ll_name[UT_NAMESIZE]; /* the login name */
char ll_host[UT_HOSTSIZE]; /* where the login originated */
};
#define ll_line ll_host
struct utmp {
long ut_time; /* the login time */
long ut_sid; /* session ID */
char ut_name[UT_NAMESIZE]; /* the login name */
char ut_host[UT_HOSTSIZE]; /* where the login originated */
};
#define ut_line ut_host
#endif /* !UTMP_H */